package com.machine.filling.function.main.orderInfoFg;

import com.machine.filling.base.baseMvp.IBasePresenter;
import com.machine.filling.base.baseMvp.IBaseView;
import com.machine.filling.net.ws.response.WsResPreOrderInfo;

/**
 * Created by Administrator on 2018/2/1 0001.
 */

public class OrderInfoFgContract {

    public interface Presenter extends IBasePresenter{
        /**
         * 获取预约订单
         * @param portNum
         */
        void getPreOrderInfo(String portNum);

        /**
         * 发送命令 预约加油 定量加油
         * @param portNum
         * @param orderBean
         */
        void port_sendOrder_110A(String portNum,WsResPreOrderInfo orderBean);

        /**
         * 发送命令 取消预约加油 取消定量
         * @param portNum
         * @param orderBean
         */
        void port_sendCancleOrder_110B(String portNum,WsResPreOrderInfo orderBean);

        /**
         * http 解锁订单
         */
        void http_unLockOrder(String portNum);
    }

    public interface View extends IBaseView<Presenter>{


        /**
         * 获取油站id
         * @return
         */
        String getStationId();
        /**
         * 获取油枪id
         * @return
         */
        String getGunId();
        /**
         * 获取预约订单号
         * @return
         */
        String getPreOrderNum();

        /**
         * 显示预约订单信息
         */
        void showPreOrderInfo(WsResPreOrderInfo orderBean);

        /**
         * 显示预约订单获取失败
         * @param errorCode
         * @param errorMsg
         */
        void showPreOrderInfoError(String errorCode,String errorMsg);
    }
}
